<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../Public/scripts/function.js" ></script>
<script type="text/javascript" src="../Public/ajax/Base.js" ></script>
<script type="text/javascript" src="../Public/ajax/prototype.js" ></script>
<script type="text/javascript" src="../Public/ajax/mootools.js" ></script>
<script type="text/javascript" src="../Public/ajax/Ajax/ThinkAjax.js" ></script>
<script type="text/javascript">
function IsLogin() {
	var session = "{$_SESSION['user']}";
	var content = document.getElementById('headContentLeft');
	if(session != ""){
		content.innerHTML = ' <img src="../Public/images/member.png" /> '+
    		'<span style="font-weight:bold">欢迎您,{$_SESSION[\'user\'][\'user_name\']}！</span> 身份：<span style="font-weight:bold; color:#96C">{$_SESSION[\'type\']}</span>, 您有<a href=""><span style="color:#FF0000">1条未读消息</span></a> '+
        	'<input type="button" onclick="" value="个人空间" id="" class="headButton" /> '+
        	'<input type="button" onclick="window.location.href=\'__GROUP__/Index/logout\';" value="安全退出" class="headButton" />';
	}
}
function quickLogin() {
	if(quickLoginCheck()) {
		ThinkAjax.sendForm('quickLogin_form','__GROUP__/Index/quicklogin',isQuickLogin,'');
	}
} 
</script>
<body onload="IsLogin()">
<div class="headBar">
	<form id="quickLogin_form" method="post">
	<div class="headContent">
    	<div id="headContentLeft" class="headContentLeft">
    		用户名:
        	<input style="width:90px;height:14px;" type="text" id="quickUsername" name="quickUsername"/>
        	密码：
        	<input type="password" style="width:90px;height:14px;" id="quickPwd" name="quickPwd"/>
        	<input type="checkbox" style="padding-top:10px;" id="chkTopRem" />
        	自动登录
        	<input type="button" onclick="quickLogin();" value="马上登录" id="btnTopLogin" class="headButton"/>
        	<input type="button" onclick="window.location.href='__GROUP__/Index/reg.shtml';" value="立即注册" class="headButton"/>
    	</div>
        <div class="headContentRight">
        	<img src="../Public/images/homepage.png" /> <a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.jiadui520.com');" href="javascript:void(0);">设为主页</a>        
            <img src="../Public/images/addFavorite.png" /> <a href="Javascript:window.external.addFavorite('http://www.jiadui520.com','天生嫁对网')">收藏本站</a>   
            <img src="../Public/images/map_ico.gif" /> <a href="__GROUP__/Index/map.shtml">网站地图</a> 
        </div>
    </div>
    </form>
</div>
</body>